Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow wparam and lparam in similar_names #7255

Merged

Conversation

whatisaphone
Copy link
Contributor

@whatisaphone whatisaphone commented May 20, 2021

wparam and lparam are often used as generic parameter names in win32 (for example WindowProc). This PR adds them to the similar_names exception list.

changelog: [similar_names] don't treat wparam and lparam as similar

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @giraffate (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 20, 2021
@giraffate
Copy link
Contributor

Thanks for opening PR!

The code looks good to me. But I'm not familiar to Windows, so I don't know if it's reasonable. I would like to hear the opinions of others, here https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.

@giraffate
Copy link
Contributor

@bors r+

It looks good, thanks!

@bors
Copy link
Contributor

bors commented May 24, 2021

📌 Commit 2eafec1 has been approved by giraffate

@bors
Copy link
Contributor

bors commented May 24, 2021

⌛ Testing commit 2eafec1 with merge 41bb092...

@bors
Copy link
Contributor

bors commented May 24, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 41bb092 to master...

@bors bors merged commit 41bb092 into rust-lang:master May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants